<template>
  <div class="userEnterSetting-content padding10">
    <el-form label-width="90px" size="mini">
      <el-form-item label="点名个数:">
        <el-input-number v-model="userEnterSetting.userCount" :min="1" :max="10"></el-input-number>
      </el-form-item>
      <el-form-item label="是否打开:">
        <el-switch v-model="userEnterSetting.open" />
      </el-form-item>
      <el-form-item label="智能润色:">
        <el-switch v-model="userEnterSetting.smartReply.open" />
      </el-form-item>
      <el-form-item label="润色内容:">
        <el-input type="textarea" v-model="userEnterContent" :autosize="{ minRows: 7, maxRows: 9 }"
          placeholder="请输入用户新进">
        </el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'UserEnterSetting',
  data() {
    return {
      userEnterContent: '',
    };
  },
  props: {
    content: {
      type: String,
      default: '',
    },
  },
  watch: {
    content: {
      handler(val) {
        this.userEnterContent = val;
      },
      immediate: true
    }
  },
  created() {
  },
  computed: {
    userEnterSetting() {
      return this.pageConfig.userEnterSetting;
    },
    pageConfig() {
      return this.$store.state.page.config;
    }
  },
  methods: {
  }
};
</script>

<style lang="scss" scoped></style>
